import { _decorator, Node } from "cc";
import ComponentBase from "../engine/ComponentBase";

const { ccclass, property } = _decorator

@ccclass('component/LoadingIcon')
export class LoadingIcon extends ComponentBase {

    private icon: Node;

    onEnable() {
        this.icon = this.node.getChildByName("icon")
    }

    update() {
        if (this.icon) {
            this.icon.angle -= 8;
        }
    }
}

